gtk4.git
10 years agoAdwaita: theme acceleditor > label
Matthias Clasen [Wed, 30 Mar 2016 21:08:39 +0000 (17:08 -0400)]
Adwaita: theme acceleditor > label

We need to have an opaque background here, otherwise the underlying
cell shines through.

https://bugzilla.gnome.org/show_bug.cgi?id=764376

10 years agoAccel cell renderer: Set a css name
Matthias Clasen [Wed, 30 Mar 2016 21:08:02 +0000 (17:08 -0400)]
Accel cell renderer: Set a css name

Give the event box we use here the distinctive name "acceleditor".

10 years agowidget: queue a redraw only if resize highlighting is enabled
Benjamin Otte [Wed, 30 Mar 2016 19:41:08 +0000 (21:41 +0200)]
widget: queue a redraw only if resize highlighting is enabled

e8aa9b0440e03e7002323922f862342db51c5f32 introduced a new debug mode
that highlights resizes. Unfortunately it has the side effect of
always queueing redraws even when the debug mode is not enabled.
Make the redraw conditional.

10 years agowindow: Make the sample code obey the party line on geometry widgets
Debarshi Ray [Tue, 29 Mar 2016 17:58:21 +0000 (19:58 +0200)]
window: Make the sample code obey the party line on geometry widgets

The geometry_widget parameter is deprecated [1]. If one is passed, we
remove GDK_HINT_BASE_SIZE and GDK_HINT_RESIZE_INC from the mask [2].

[1] commit 08974a1e9a6099a5a94b9d56970dbf96e473ba87
[2] commit f7cc4abbad76f354cdc740e7fb9192719f72a89a

https://bugzilla.gnome.org/show_bug.cgi?id=764321

10 years agoGDK W32: Use a dumb window class for decorative windows
Руслан Ижбулатов [Tue, 15 Mar 2016 16:10:34 +0000 (16:10 +0000)]
GDK W32: Use a dumb window class for decorative windows

Currently only one kind of decorative window is in use - the shape
indicator that is shown when snapping windows to the edge of the screen.

When normal toplevel class is used, its window procedure expects certain
motions from GDK (passing user data to CreateWindowEx(), registering
handle in a hash map etc), and might crash if that is not done.

Dumb window doesn't require anything, it can just be.

https://bugzilla.gnome.org/show_bug.cgi?id=763013

10 years agoGDK W32: Add/subtract shadow when (un)snapping
Руслан Ижбулатов [Tue, 15 Mar 2016 10:17:45 +0000 (10:17 +0000)]
GDK W32: Add/subtract shadow when (un)snapping

Now halfleft/halfright/fullup snaps do hug screen edges as intended.

Documents AeroSnap behaviour when snapped windows are drag-resized
(currently this implementation handles this in a very simplistic way).

Don't believe GTK when it tells us that window shadow is 0, preserve
previous values (but do remember that GTK wants no shadow, in case
we need that).

Fixes a couple of bugs in unsnapping (check offset against the half
of the window; don't put pointer in the middle of the window vertically
if it still fits in the top half).

https://bugzilla.gnome.org/show_bug.cgi?id=763013

10 years agoGDK W32: Add/subtract shadow when drag-resizing
Руслан Ижбулатов [Tue, 15 Mar 2016 10:15:14 +0000 (10:15 +0000)]
GDK W32: Add/subtract shadow when drag-resizing

Implements gdk_win32_window_set_shadow_width().
Uses shadow width/height to adjust max tracking size, allowing
windows to be drag-resized to cover the whole desktop.

Also uses SM_C*VIRTUALSCREEN instead of SM_C*MAXTRACK.

https://bugzilla.gnome.org/show_bug.cgi?id=763013

10 years agoGDK W32: Draw snap indicators for AeroSnap
Руслан Ижбулатов [Sat, 12 Mar 2016 16:26:19 +0000 (16:26 +0000)]
GDK W32: Draw snap indicators for AeroSnap

Indicator is a bare layered click-through native window,
painted completely by GDK, including animation.

This commit also isolates some of the more spam-ish debug logging
under ifdef.

This commit also changes the system metric used for maximal window
height for the snapping purposes. Turns out, SM_CYMAXTRACK is way
too large, use SM_CYVIRTUALSCREEN instead.

https://bugzilla.gnome.org/show_bug.cgi?id=763013

10 years agoGDK W32: Add drag-to-snap feature to AeroSnap
Руслан Ижбулатов [Tue, 8 Mar 2016 05:03:29 +0000 (05:03 +0000)]
GDK W32: Add drag-to-snap feature to AeroSnap

This implements the part of AeroSnap that snaps windows when you
drag them (while moving or resizing) to the edge of the screen.

It also fixes drag behaviour for snapped and maximized windows
(if such windows are dragged, first they must be unmaximized/unsnapped).

Note that this code does not take into account the shadow width, and
because of that the under-pointer-position-preserving window moves
might not look as such for maximized windows, which lack the shadow
when maximized, but do have the shadow when unmaximized.

This commit also doesn't cover some corner-cases the same way AeroSnap does.

Also, the snapping indicator (which is supposed to be a window shape that
shows where the window will be if the drag op is stopped at its current
point) is not being drawn, all routines responsible for its creation,
moving and drawing are stubs.

https://bugzilla.gnome.org/show_bug.cgi?id=763013

10 years agoGDK W32: Improve AeroSnap - don't resize windows that fit
Руслан Ижбулатов [Tue, 8 Mar 2016 03:17:09 +0000 (03:17 +0000)]
GDK W32: Improve AeroSnap - don't resize windows that fit

This is what AeroSnap does. If a window is being unsnapped on
a new monitor, check if the work area is large enough for the
window to fit in its normal size. If the window fits, just
reposition it so that the ratio of
left-window-edge-to-screen-edge / right-window-edge-to-screen-edge
remains the same, without scaling the window.

https://bugzilla.gnome.org/show_bug.cgi?id=763013

10 years agoGDK W32: Re-implement AeroSnap for CSD windows
Руслан Ижбулатов [Tue, 8 Mar 2016 02:33:47 +0000 (02:33 +0000)]
GDK W32: Re-implement AeroSnap for CSD windows

It works exactly like AeroSnap.
Except for shift+win+left/right, which is left for AeroSnap
to handle (AeroSnap takes action before we get the message,
so there's no way for us to override it).
The only thing that doesn't work is shift+win+left/right on
a maximized window, for reasons unknown at the moment.

This only implements winkey+stuff behaviour of AeroSnap,
not the drag-to-the-edge-and-something-funny-happens one.

https://bugzilla.gnome.org/show_bug.cgi?id=763013

10 years agowindow: Fix gtk_window_set_geometry_hints documentation
Debarshi Ray [Tue, 29 Mar 2016 17:29:31 +0000 (19:29 +0200)]
window: Fix gtk_window_set_geometry_hints documentation

The geometry_widget parameter is ignored from 3.20 onwards [1], not
3.18 as mentioned in the documentation.

[1] commit 08974a1e9a6099a5a94b9d56970dbf96e473ba87

https://bugzilla.gnome.org/show_bug.cgi?id=764321

10 years agoBump to 3.21.0
Emmanuele Bassi [Tue, 29 Mar 2016 15:24:14 +0000 (16:24 +0100)]
Bump to 3.21.0

Otherwise newly added API will start warning.

10 years agoGDK W32: Erase hidden layered windows before showing them
Руслан Ижбулатов [Wed, 16 Mar 2016 18:16:33 +0000 (18:16 +0000)]
GDK W32: Erase hidden layered windows before showing them

If a layered window was hidden and is made visible, erase its
contents before showing it. GDK will schedule a redraw, but until
then we generally don't want to show old contents.

https://bugzilla.gnome.org/show_bug.cgi?id=763783

10 years agoGDK W32: Implement show_window_menu()
Руслан Ижбулатов [Fri, 18 Mar 2016 04:51:52 +0000 (04:51 +0000)]
GDK W32: Implement show_window_menu()

This is achieved by sending undocumented message WM_SYSMENU
to the window.
Before doing that, the window is given WS_SYSMENU style
(to enable window menu) and some combination of
WS_MAXIMIZEBOX (for "Mazimize" item)
WS_MINIMIZEBOX (for "Minimize" item)
WS_SIZEBOX (for "Size" item)
depending on which operations are currently permissible.

WM_SYSMENU is processed by DefWindowProc(), which results
in showing the window menu. We remove extra styles
at the first opportunity (WM_INITMENU message), as they
alter the way our window is rendered.

https://bugzilla.gnome.org/show_bug.cgi?id=763851

10 years agoAdwaita: set caret-color for drop targets
Lapo Calamandrei [Tue, 29 Mar 2016 13:06:11 +0000 (15:06 +0200)]
Adwaita: set caret-color for drop targets

10 years agoAdwaita: cosmetic fix
Lapo Calamandrei [Tue, 29 Mar 2016 13:01:57 +0000 (15:01 +0200)]
Adwaita: cosmetic fix

10 years agoAdd some tests for GdkRectangle
Matthias Clasen [Mon, 28 Mar 2016 23:54:55 +0000 (19:54 -0400)]
Add some tests for GdkRectangle

In particular, we're testing corner cases with empty rectangles
here.

10 years agoExpand visual tests a bit
Matthias Clasen [Mon, 28 Mar 2016 23:28:57 +0000 (19:28 -0400)]
Expand visual tests a bit

10 years agoAdd tests for seat apis
Matthias Clasen [Mon, 28 Mar 2016 23:22:36 +0000 (19:22 -0400)]
Add tests for seat apis

These are just some basic sanity tests.

10 years agoMove autotestkeywords to testsuite
Matthias Clasen [Mon, 28 Mar 2016 21:56:13 +0000 (17:56 -0400)]
Move autotestkeywords to testsuite

All the 'make check' and installed tests are now in testsuite/,
and tests/ is just a collection manual test programs.

10 years agowindow: Remove suspicious branch
Benjamin Otte [Tue, 1 Dec 2015 16:25:54 +0000 (17:25 +0100)]
window: Remove suspicious branch

While this commit was found to make emacs windows shrink (and it was
reverted in the gtk-3-20 branch for that reason), that was the only
observed breakage, while the reversal broke several of our unit tests.

Closer study of the emacs sources revealed that it does some really
unsupportable things like doing its own X event handling behind GTK+'s
back and freely mixing sizes of GtkWindows and GdkWindows obtained in
various ways. I've filed a bug against emacs with suggestions for how
to avoid the shrinking window, regardless of this commit.

Original commit message:

It seems this branch is not needed anymore. It was originally added in
1999 to support gtk_widget_realize(), but all those reasons seem
obsolete today.
Instead just call gtk_widget_realize().

If you end up at this commit when bisecting:
There is no bug that made me remove this code, it was purely meant to be
cleanup / dead code removal. I seem to have introduced a new bug or
bisecting wouldn't have let you here. So it seems we should just revert
this commit.

10 years agogtkapplication: _get_app_menu can return NULL
Timm Bäder [Mon, 28 Mar 2016 16:18:20 +0000 (18:18 +0200)]
gtkapplication: _get_app_menu can return NULL

10 years agoUpdated Lithuanian translation
Aurimas Černius [Mon, 28 Mar 2016 14:48:10 +0000 (17:48 +0300)]
Updated Lithuanian translation

10 years agoUse dngettext instead of ngettext
Matthias Clasen [Sun, 27 Mar 2016 23:00:31 +0000 (19:00 -0400)]
Use dngettext instead of ngettext

Since we are a library, we have to pass the domain explicitly.

https://bugzilla.gnome.org/show_bug.cgi?id=764261

10 years agoplaces sidebar: Plug a small memory leak
Matthias Clasen [Sun, 27 Mar 2016 14:59:59 +0000 (10:59 -0400)]
places sidebar: Plug a small memory leak

_gtk_trash_moniotr_get_icon is transfer full, so we have
to unref the icon.

10 years agoGtkClipboard: fix a typo
Cosimo Cecchi [Sun, 27 Mar 2016 15:39:44 +0000 (08:39 -0700)]
GtkClipboard: fix a typo

10 years agoGtkCssSection: remove duplicated documentation
Cosimo Cecchi [Sun, 27 Mar 2016 15:35:13 +0000 (08:35 -0700)]
GtkCssSection: remove duplicated documentation

Fixes a build time warning.

10 years agoscale: fix marks node position for scales with value
Cosimo Cecchi [Sun, 27 Mar 2016 05:36:12 +0000 (22:36 -0700)]
scale: fix marks node position for scales with value

We should only count the value node as the first/last one if its
position matches.

10 years agorange: use gadget pointers for grab/mouse locations
Cosimo Cecchi [Sun, 27 Mar 2016 03:50:59 +0000 (20:50 -0700)]
range: use gadget pointers for grab/mouse locations

Simplify code and remove the mouse location indirection.

10 years agoscale: remove impossible case
Cosimo Cecchi [Sun, 27 Mar 2016 02:11:41 +0000 (19:11 -0700)]
scale: remove impossible case

We only create the gadget when the markup is not empty, so we don't
need to check again here.

10 years agoscale: cache pango layouts for mark labels
Cosimo Cecchi [Sun, 27 Mar 2016 02:07:36 +0000 (19:07 -0700)]
scale: cache pango layouts for mark labels

Constantly creating pango layouts while drawing means that animations
will be slow. Instead, cache the pango layout in the mark structure.

10 years agoAdd an index for 3.22 api additions
Matthias Clasen [Sun, 27 Mar 2016 03:32:45 +0000 (23:32 -0400)]
Add an index for 3.22 api additions

10 years agoAdd a function to get the selection of a clipboard
Matthias Clasen [Sun, 27 Mar 2016 03:30:21 +0000 (23:30 -0400)]
Add a function to get the selection of a clipboard

This was requested in
http://bugzilla.gnome.org/show_bug.cgi?id=730821

10 years agoRemove private clipboard api from public headers
Matthias Clasen [Sun, 27 Mar 2016 03:17:53 +0000 (23:17 -0400)]
Remove private clipboard api from public headers

10 years agofilter model: Mark property nicks and blurbs for translation
Matthias Clasen [Sat, 26 Mar 2016 22:59:02 +0000 (18:59 -0400)]
filter model: Mark property nicks and blurbs for translation

Better descriptions are not going to happen... might as well
admit it.

10 years agoDrop some more code
Matthias Clasen [Sat, 26 Mar 2016 22:53:55 +0000 (18:53 -0400)]
Drop some more code

This ifdefed out function was only used in the code I just nuked,
so it can go as well.

10 years agofile chooser: Drop unused code
Matthias Clasen [Sat, 26 Mar 2016 22:52:04 +0000 (18:52 -0400)]
file chooser: Drop unused code

We've never restored filechooser positions, and we aren't going to.

10 years agowayland: Get min/max keycode from xkb keymap
Matthias Clasen [Sat, 26 Mar 2016 22:48:27 +0000 (18:48 -0400)]
wayland: Get min/max keycode from xkb keymap

Instead of hardcoding 8/255 here.

10 years agoDrop irritating FIXMEs in docs
Matthias Clasen [Sat, 26 Mar 2016 22:39:39 +0000 (18:39 -0400)]
Drop irritating FIXMEs in docs

There is nothing to fix here, so don't make gnome-builder pick
these lines up for its todo list.

10 years agoStop using pango_split_file_list
Matthias Clasen [Sat, 26 Mar 2016 22:18:50 +0000 (18:18 -0400)]
Stop using pango_split_file_list

Add a copy of this deprecated utility in gtkutils.c and use
it instead of the pango API.

10 years agoSplit off copied pango utils in their own source
Matthias Clasen [Sat, 26 Mar 2016 22:12:16 +0000 (18:12 -0400)]
Split off copied pango utils in their own source

This will make it easier to use them in more than one place.

10 years agoRevert "window: Remove suspicious branch"
Matthias Clasen [Sat, 26 Mar 2016 21:32:37 +0000 (17:32 -0400)]
Revert "window: Remove suspicious branch"

This reverts commit 67ab00e01ec06d7b05a82c3d80b235ac6c4abfd2.

Bisection showed that this commit caused emacs windows to shrink
to a small size when first shown.

10 years agowayland: Add debug output for pixel formats
Matthias Clasen [Sat, 26 Mar 2016 20:08:01 +0000 (16:08 -0400)]
wayland: Add debug output for pixel formats

Use GDK_DEBUG=misc to see information about wl_shm pixel formats
supported by the compositor.

10 years agoDeprecate gdk_visual_get_colormap_size
Matthias Clasen [Sat, 26 Mar 2016 19:15:28 +0000 (15:15 -0400)]
Deprecate gdk_visual_get_colormap_size

Since we don't have API for colormaps anymore, this is not
a useful function.

10 years agoDeprecate gdk_visual_get_byte_order
Matthias Clasen [Sat, 26 Mar 2016 19:06:10 +0000 (15:06 -0400)]
Deprecate gdk_visual_get_byte_order

This function is only useful when working with XImages,
and is not meaningfully implemented in other backends.

10 years agowayland: Fix up visual implementation
Matthias Clasen [Sat, 26 Mar 2016 18:58:48 +0000 (14:58 -0400)]
wayland: Fix up visual implementation

Don't return visuals that don't match the requested depth
and/or visual type.

10 years agoAdd some more visual tests
Matthias Clasen [Sat, 26 Mar 2016 18:56:36 +0000 (14:56 -0400)]
Add some more visual tests

These are just basic tests to ensure that the visual implementation
of a backend is sound.

10 years agoDeprecate gdk_visual_get_bits_per_rgb
Matthias Clasen [Sat, 26 Mar 2016 18:20:23 +0000 (14:20 -0400)]
Deprecate gdk_visual_get_bits_per_rgb

This function is pretty useless, since the Wayland backend returns
0 for this, and the Windows backend 42 (!).

10 years agoAdd version macros for 3.22
Matthias Clasen [Sat, 26 Mar 2016 18:08:10 +0000 (14:08 -0400)]
Add version macros for 3.22

10 years agorange: Simplify highlight allocation
Matthias Clasen [Sat, 26 Mar 2016 17:50:42 +0000 (13:50 -0400)]
range: Simplify highlight allocation

Since we are really only interested in the center point of the
slider allocation, the pre-computed slider geometry is perfectly
fine, just use it always. This avoids the complication with
gadget visibility.

10 years agorange: Avoid miscalculating highlight allocation
Matthias Clasen [Sat, 26 Mar 2016 14:50:00 +0000 (10:50 -0400)]
range: Avoid miscalculating highlight allocation

The slider gadget may be turned invisible as side-effect of
gtk_range_calc_slider(). If that happens,
gtk_css_gadget_get_content_allocation() returns { 0, 0, 0, 0},
which leads us to calculate a negative allocation for the highlight
node. Avoid this, by just reusing our already calculated slider
allocation in this case (it is not technically the same as the
content, allocation, but the difference hardly matter here.

https://bugzilla.gnome.org/show_bug.cgi?id=764022

10 years agoAdd a test for the system rgba visual
Matthias Clasen [Sat, 26 Mar 2016 14:09:19 +0000 (10:09 -0400)]
Add a test for the system rgba visual

The main point of this test is to ensure that the pixel_details
getters work as expected.

10 years agowayland: Fully initialize the visual
Matthias Clasen [Sat, 26 Mar 2016 14:10:16 +0000 (10:10 -0400)]
wayland: Fully initialize the visual

The pixel details (mask, shift and precision) are supposed to
be filled in for TrueColor visuals.

10 years agoMake gdk_visual_get_*_pixel_details work again
Matthias Clasen [Sat, 26 Mar 2016 13:32:51 +0000 (09:32 -0400)]
Make gdk_visual_get_*_pixel_details work again

These functions are supposed to return the numbers of consecutive
1 bits in each components mask as precision. However, due to a
copy-paste mistake when this code was moved around in
commit 70d689cddda0dc616af97e8ed047d0c0acf7c7a6, the precision
was always reported as zero. This affects only a few applications
that directly set window background on X11 windows, such as emacs.

https://bugzilla.gnome.org/show_bug.cgi?id=764210

10 years agoUpdate Catalan translation
Jordi Mas [Sat, 26 Mar 2016 07:10:28 +0000 (08:10 +0100)]
Update Catalan translation

10 years agoHighContrastInverse: Fix suggested-action colors
Matthias Clasen [Sat, 26 Mar 2016 02:43:57 +0000 (22:43 -0400)]
HighContrastInverse: Fix suggested-action colors

Choose a suitable foreground color instead of hardcoding white.

https://bugzilla.gnome.org/show_bug.cgi?id=764170

10 years agogtk3-demo: Show more button styles
Matthias Clasen [Sat, 26 Mar 2016 02:36:50 +0000 (22:36 -0400)]
gtk3-demo: Show more button styles

Add examples for suggested-action and destructive-action
buttons in the style classes example.

10 years agogtk3-demo: Rename "CSS Theming" group
Matthias Clasen [Sat, 26 Mar 2016 02:39:53 +0000 (22:39 -0400)]
gtk3-demo: Rename "CSS Theming" group

Call it just "Themeing" to avoid the repetition of CSS.

10 years agoUpdated Hungarian translation
Balázs Úr [Sat, 26 Mar 2016 00:47:32 +0000 (00:47 +0000)]
Updated Hungarian translation

10 years agoGDK W32: Optimize clipboard handling a bit
Руслан Ижбулатов [Sat, 19 Mar 2016 09:49:56 +0000 (09:49 +0000)]
GDK W32: Optimize clipboard handling a bit

Delay as long as possible before calling OpenClipboard(),
call CloseClipboard() as quickly as possible after that.
Don't call OpenClipboard() when we don't need to (for example,
we don't need to open clipboard to call GetClipboardOwner()).

Also, print out actual W32 error code in some cases where it
was not printed before.

https://bugzilla.gnome.org/show_bug.cgi?id=763907

10 years agoGDK W32: Print error code along with the error message
Руслан Ижбулатов [Mon, 21 Mar 2016 16:25:19 +0000 (16:25 +0000)]
GDK W32: Print error code along with the error message

Error codes can be easily looked up in an error code list
and/or googled up. Error messages, while descriptive, often
describe the wrong thing, and the messages themselves are not
part of the documentation of a function, unlike error codes.
It would be preferable to have the code, or both.

https://bugzilla.gnome.org/show_bug.cgi?id=763913

10 years agoGDK W32: Print more debug info about events
Руслан Ижбулатов [Sat, 19 Mar 2016 11:59:13 +0000 (11:59 +0000)]
GDK W32: Print more debug info about events

1) Print timestamps for events
2) Print wParam and lParam (in hex form) for messages

https://bugzilla.gnome.org/show_bug.cgi?id=763913

10 years agoUpdated POTFILES.in
Piotr Drąg [Fri, 25 Mar 2016 20:27:21 +0000 (21:27 +0100)]
Updated POTFILES.in

10 years agoinspector: add slider for adjusting the font scale
Christoph Reiter [Fri, 25 Mar 2016 12:42:31 +0000 (13:42 +0100)]
inspector: add slider for adjusting the font scale

https://bugzilla.gnome.org/show_bug.cgi?id=761435

10 years agostack switcher: Add a missing include
Matthias Clasen [Fri, 25 Mar 2016 19:52:22 +0000 (15:52 -0400)]
stack switcher: Add a missing include

10 years agodnd: Move GtkDragDest to a separate file
Matthias Clasen [Sun, 13 Dec 2015 23:43:10 +0000 (18:43 -0500)]
dnd: Move GtkDragDest to a separate file

This follows what was done for GtkDragSource in
415030d25f2552d3937ee3c394c50d22c5382982 and shaves another
500 lines off gtkdnd.c.

10 years agoUpdated German translation
Wolfgang Stöggl [Fri, 25 Mar 2016 18:20:27 +0000 (18:20 +0000)]
Updated German translation
(cherry picked from commit 5e5372ce74cfd06498dee1938f0249d1039ede16)

10 years agoUpdated German translation
Wolfgang Stöggl [Fri, 25 Mar 2016 18:17:41 +0000 (18:17 +0000)]
Updated German translation
(cherry picked from commit c08f4bd2a93e779158ed221c7ea75a9df8ffd35f)

10 years agogtkaboutdialog: don't break ABI in GtkLicense enum
Mohammed Sadik [Fri, 25 Mar 2016 12:38:07 +0000 (18:08 +0530)]
gtkaboutdialog: don't break ABI in GtkLicense enum

As the elements in the enum are not explicitly numbered, inserting an
element between some other elements shall change the values of elements
after the insertion. So append the new element at the end.

Anyway, no code should rely on the position of an element in an enum.

https://bugzilla.gnome.org/show_bug.cgi?id=763850

10 years agoAdd a css node test for scales
Matthias Clasen [Fri, 25 Mar 2016 17:12:00 +0000 (13:12 -0400)]
Add a css node test for scales

10 years agopopover: raise when showing
Olivier Fourdan [Thu, 24 Mar 2016 10:32:24 +0000 (11:32 +0100)]
popover: raise when showing

Some other widget might have mapped and raised another child window of
the toplevel in the meantime, causing the popover window to be covered.

Raise the popover window to avoid the issue.

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=763627

10 years agoFix Catalan translation
Jordi Mas [Fri, 25 Mar 2016 13:27:16 +0000 (14:27 +0100)]
Fix Catalan translation

10 years agoUpdated Italian translation
Milo Casagrande [Fri, 25 Mar 2016 10:58:30 +0000 (10:58 +0000)]
Updated Italian translation
(cherry picked from commit be624e71f43ffe8ec5351fbce575388561c5a240)

10 years agotrashmonitor: change trash monitoring process
Razvan Chitu [Mon, 14 Mar 2016 09:55:00 +0000 (11:55 +0200)]
trashmonitor: change trash monitoring process

The trash is monitored for state changes - going from empty to non-empty and the
other way round. Monitoring is done by handling change signals from a regular
file monitor. On each signal, an enumeration of the trash contents is started in
order to see if it is empty or not. This causes issues when many files are
trashed, because the gvfs trash backend is flooded with enumeration requests,
resulting in CPU usage spikes. In order to fix this, the "item-count" attribute
of the trash should be queried instead.

Replace asynchronous enumeration with asynchronous information query and update
the trash state based on the "item-count" attribute. Emit state change signal
only when the state actually changes.

https://bugzilla.gnome.org/show_bug.cgi?id=763600

10 years agogtkaboutdialog: Add support for GNU Affero GPLv3+
Mohammed Sadik [Fri, 18 Mar 2016 14:18:29 +0000 (19:48 +0530)]
gtkaboutdialog: Add support for GNU Affero GPLv3+

Add support for GNU Affero GPLv3 (or later) to GtkLicense enum

https://bugzilla.gnome.org/show_bug.cgi?id=763850

10 years agoadd a css style test for font: smaller
Matthias Clasen [Thu, 24 Mar 2016 12:24:45 +0000 (08:24 -0400)]
add a css style test for font: smaller

10 years ago3.20.1
Matthias Clasen [Fri, 25 Mar 2016 01:34:35 +0000 (21:34 -0400)]
3.20.1

10 years agoUpdate css node test for GtkSwitch changes
Matthias Clasen [Fri, 25 Mar 2016 02:27:12 +0000 (22:27 -0400)]
Update css node test for GtkSwitch changes

10 years agoRevert "add a css style test for font: smaller"
Matthias Clasen [Fri, 25 Mar 2016 01:18:27 +0000 (21:18 -0400)]
Revert "add a css style test for font: smaller"

This reverts commit a4ed154b037aaf03f8c166a711c326a030225eed.

The misparsing that is tested here will not be fixed in 3.20,
so keep this test out of the stable branch.

10 years agoUpdated German translation
Mario Blättermann [Fri, 25 Mar 2016 00:41:41 +0000 (00:41 +0000)]
Updated German translation

10 years agomenu: Clip children to view window
Benjamin Otte [Thu, 24 Mar 2016 18:50:45 +0000 (19:50 +0100)]
menu: Clip children to view window

Don't overdraw the arrow allocations.

https://bugzilla.gnome.org/show_bug.cgi?id=764118

10 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Thu, 24 Mar 2016 19:17:19 +0000 (20:17 +0100)]
Updated Basque language

10 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Thu, 24 Mar 2016 19:15:34 +0000 (20:15 +0100)]
Updated Basque language

10 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Thu, 24 Mar 2016 19:14:02 +0000 (20:14 +0100)]
Updated Basque language

10 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Thu, 24 Mar 2016 18:59:24 +0000 (19:59 +0100)]
Updated Basque language

10 years agoHigh Contrast Inverse: switches
Jakub Steiner [Thu, 24 Mar 2016 15:43:20 +0000 (16:43 +0100)]
High Contrast Inverse: switches

- make sure both non active and active states are contrasty

https://bugzilla.gnome.org/show_bug.cgi?id=763802

10 years agoHigh Contrast Inverse: set contrasty selected items
Jakub Steiner [Thu, 24 Mar 2016 15:35:19 +0000 (16:35 +0100)]
High Contrast Inverse: set contrasty selected items

- selected bg was set lighter without appropriate fg color

https://bugzilla.gnome.org/show_bug.cgi?id=763804

10 years agoHigh Contrast Inverse: scale trough fix
Jakub Steiner [Thu, 24 Mar 2016 15:32:01 +0000 (16:32 +0100)]
High Contrast Inverse: scale trough fix

- make the trough more visible for HCI

https://bugzilla.gnome.org/show_bug.cgi?id=763805

10 years agoUpdated POTFILES.skip
Piotr Drąg [Thu, 24 Mar 2016 14:35:11 +0000 (15:35 +0100)]
Updated POTFILES.skip

10 years agoadd a css style test for font: smaller
Matthias Clasen [Thu, 24 Mar 2016 12:24:45 +0000 (08:24 -0400)]
add a css style test for font: smaller

10 years agoAdwaita: avoid sizing transition on the scale...
Lapo Calamandrei [Thu, 24 Mar 2016 12:15:23 +0000 (13:15 +0100)]
Adwaita: avoid sizing transition on the scale...

... since it ends up jumpy.

10 years agoAdwaita: placesview connect to server label padding
Lapo Calamandrei [Thu, 24 Mar 2016 10:33:33 +0000 (11:33 +0100)]
Adwaita: placesview connect to server label padding

adds some padding to the "connect to server" label

10 years agoAdwaita: fix menu scroll arrows positioning
Lapo Calamandrei [Thu, 24 Mar 2016 10:25:52 +0000 (11:25 +0100)]
Adwaita: fix menu scroll arrows positioning

adresses the style part of
https://bugzilla.gnome.org/show_bug.cgi?id=764118

10 years agoUpdated Slovak translation
Dušan Kazik [Thu, 24 Mar 2016 06:51:38 +0000 (06:51 +0000)]
Updated Slovak translation

10 years agoswitch: An active switch is :checked
Benjamin Otte [Wed, 23 Mar 2016 17:14:57 +0000 (18:14 +0100)]
switch: An active switch is :checked

Fix an oversight that should have happened in the gadget refactoring:
An active switch should be :checked, just like togglebuttons,
checkbuttons, etc.

10 years agoquartz: fix pixelated image surfaces in retina/hidpi mode
Christoph Reiter [Wed, 16 Mar 2016 18:25:30 +0000 (19:25 +0100)]
quartz: fix pixelated image surfaces in retina/hidpi mode

gtk+ currently depends on the scaling factor and the cairo device scale
of both the backend surfaces and image surfaces to be equal.

Until now we didn't apply a cairo device scale at all and depended on the
automatic scaling of CGContexts. This works when drawing with cairo but
fails in case of image surfaces, which get requested at a too small size.

To make the quartz backend behave more like the X11 one, set the cairo device
scale on the surface in gdk_quartz_ref_cairo_surface(). As this conflicts
with the default scaling done by CGContext (we would get double scaling)
undo the CGContext scaling using CGContextScaleCTM().

This patch is based on the following patches by Brion Vibber:
    https://bugzilla.gnome.org/show_bug.cgi?id=740199#c4
    https://bugs.freedesktop.org/show_bug.cgi?id=69796#c4

https://bugzilla.gnome.org/show_bug.cgi?id=763779

10 years agoUpdated Russian translation
Stas Solovey [Wed, 23 Mar 2016 15:23:08 +0000 (15:23 +0000)]
Updated Russian translation

10 years agoUpdated Galician translation
Fran Dieguez [Wed, 23 Mar 2016 11:20:59 +0000 (11:20 +0000)]
Updated Galician translation

10 years agoUpdated Slovenian translation
Matej Urbančič [Tue, 22 Mar 2016 21:28:03 +0000 (22:28 +0100)]
Updated Slovenian translation